package top.fengyulou.code.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.fengyulou.code.entity.ApiForm;

import java.util.List;

/**
 * 接口
 */
@Mapper
public interface ApiDao {

    List<ApiForm> getList(ApiForm form);

    int add(List<ApiForm> list);

    int update(ApiForm form);

    int delete(@Param("ids") Long[] ids, @Param("userId") Long userId);

    void updateApiStatusById(ApiForm v2ApiForm);

    long getCountByUrlAndProjectId(ApiForm form);
}
